package com.retail.xiaocui.common.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.retail.common.core.annotation.Excel;
import com.retail.common.core.web.domain.BaseEntity;

/**
 * 预警列信息对象 t_warning
 *
 * @author retail
 * @date 2024-03-01
 */
public class Warning extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 预警线ID */
    private Long warningId;

    /** 预警状态(1预警 2正常) */
    @Excel(name = "预警状态(1预警 2正常)")
    private Long warningStatus;

    /** 预警触发时间（记录首次时间或者最后一次预警时间) */
    @Excel(name = "预警触发时间", readConverterExp = "预警触发时间（记录首次时间或者最后一次预警时间)")
    private Date warningTime;

    /** 备注信息 */
    @Excel(name = "备注信息")
    private String remarkText;

    @Excel(name = "预警值")
    private Integer earlyWarning;

    @Excel(name = "商品当前库存")
    private Integer productCount;

    @Excel(name = "商品名称")
    private String skuName;

    public Integer getEarlyWarning() {
        return earlyWarning;
    }

    public void setEarlyWarning(Integer earlyWarning) {
        this.earlyWarning = earlyWarning;
    }

    public Integer getProductCount() {
        return productCount;
    }

    public void setProductCount(Integer productCount) {
        this.productCount = productCount;
    }

    public String getSkuName() {
        return skuName;
    }

    public void setSkuName(String skuName) {
        this.skuName = skuName;
    }



    public void setWarningId(Long warningId)
    {
        this.warningId = warningId;
    }

    public Long getWarningId()
    {
        return warningId;
    }
    public void setWarningStatus(Long warningStatus)
    {
        this.warningStatus = warningStatus;
    }

    public Long getWarningStatus()
    {
        return warningStatus;
    }
    public void setWarningTime(Date warningTime)
    {
        this.warningTime = warningTime;
    }

    public Date getWarningTime()
    {
        return warningTime;
    }
    public void setRemarkText(String remarkText)
    {
        this.remarkText = remarkText;
    }

    public String getRemarkText()
    {
        return remarkText;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("warningId", getWarningId())
            .append("warningStatus", getWarningStatus())
            .append("warningTime", getWarningTime())
            .append("remarkText", getRemarkText())
                .append("earlyWarning", getEarlyWarning())
                .append("productCount", getProductCount())
                .append("skuName", getSkuName())
            .toString();
    }
}
